package cn.bsb.service.backstage;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

import cn.bsb.dao.UserListMapper;
import cn.bsb.pojo.DevUser;

@Service
public class UserListService {
	
	@Autowired
	private UserListMapper mapper ;
	
	public PageInfo<DevUser> getDevUserList(String userCode ,int pageNumber,int pageSize){
		PageHelper.startPage(pageNumber, pageSize);
		List<DevUser> userlist = mapper.getUserList(userCode);
		PageInfo<DevUser> page = new PageInfo<>(userlist);
		return page;
	}

}
